/*
package com.example.PersonalAddressBook2;


import com.example.PersonalAddressBook.Contact;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public class BusinessLogic {
    private DataAccess dataAccess;

    public BusinessLogic(DataAccess dataAccess) {
        this.dataAccess = dataAccess;
    }

    public void addContact(Contact contact) throws SQLException {
        dataAccess.addContact(contact);
    }

    public void updateContact(Contact contact) throws SQLException {
        dataAccess.updateContact(contact);
    }

    public void deleteContact(int id) throws SQLException {
        dataAccess.deleteContact(id);
    }

    public List<Contact> listContacts() throws SQLException {
        return dataAccess.listContacts();
    }
}*/
